/**
 * File: g:\vue\vue-element-admin\src\api\user.js
 * Created Date: '2019-01-20 1:59:58
 * Author: 魏巍
 * -----
 * Last Modified: '2019-01-20 2:07:25
 * Modified By: 魏巍
 * -----
 * Copyright (c) 2019 魏巍
 * ------------------------------------
 * Javascript will save your soul!
 */

import request from '@/utils/request'

export function userList(params) {
  return request({
    url: '/user/list',
    method: 'get',
    params: params
  })
}

export function userLevelList() {
  return request({
    url: '/user/levelList',
    method: 'get'
  })
}

export function userCompanyList(params) {
  return request({
    url: '/user/companyList',
    method: 'get',
    params: params
  })
}

export function userJobList(params) {
  return request({
    url: '/user/jobList',
    method: 'get',
    params: params
  })
}

export function addUserMark(data) {
  return request({
    url: '/user/addMark',
    method: 'post',
    data: data
  })
}

export function userInfo(params) {
  return request({
    url: '/user/user_info',
    method: 'get',
    params: params
  })
}

export function checkAccount(params) {
  return request({
    url: '/user/check_account',
    method: 'post',
    data: params
  })
}

export function saveUserInfo(data) {
  return request({
    url: '/user/save_user_info',
    method: 'post',
    data: data
  })
}

export function frozenUser(data) {
  return request({
    url: '/user/frozen_user',
    method: 'post',
    data: data
  })
}

export function userResource(params) {
  return request({
    url: '/user/user_resource',
    method: 'get',
    params: params
  })
}

export function userAuthList(params) {
  return request({
    url: '/user/user_auth_list',
    method: 'get',
    params: params
  })
}

export function userAuthInfo(params) {
  return request({
    url: '/user/user_auth_info',
    method: 'get',
    params: params
  })
}

export function getFrozenLog(params) {
  return request({
    url: '/user/get_frozen_log',
    method: 'get',
    params: params
  })
}

export function getUserFrozenLog(params) {
  return request({
    url: '/user/get_user_frozen_log',
    method: 'get',
    params: params
  })
}

export function getUserScoreList(params) {
  return request({
    url: '/user/getUserScoreList',
    method: 'get',
    params: params
  })
}

export function getUsedScoreCountList(params) {
  return request({
    url: '/user/getUsedScoreCountList',
    method: 'get',
    params: params
  })
}

export function getScoreLogList(params) {
  return request({
    url: '/user/getScoreLogList',
    method: 'get',
    params: params
  })
}

export function getMobileLogList(params) {
  return request({
    url: '/user/getMobileLogList',
    method: 'get',
    params: params
  })
}

export function getCompanyInList(params) {
  return request({
    url: '/user/getCompanyInList',
    method: 'get',
    params: params
  })
}

export function setSinginCount(params) {
  return request({
    url: '/user/singin_count',
    method: 'post',
    data: params
  })
}

export function checkAuth(params) {
  return request({
    url: '/user/check_auth',
    method: 'post',
    data: params
  })
}

export function getCompanyTypeList(params) {
  return request({
    url: '/user/getCompanyTypeList',
    method: 'get',
    params: params
  })
}

export function getProvice() {
  return request({
    url: '/user/getProvice',
    method: 'get'
  })
}

export function getCities(params) {
  return request({
    url: '/user/getCities',
    method: 'get',
    params: params
  })
}

export function query(params) {
  return request({
    url: '/user/query',
    method: 'post',
    data: params
  })
}

export function saveMoney(params) {
  return request({
    url: '/user/save_money',
    method: 'post',
    data: params
  })
}

export function exportData(params) {
  return request({
    url: `/export`,
    method: 'POST',
    params: params
  })
}
